import shelve

self=shelve.open('/Users/tyrion/Documents/02-学习/learning/myshelve')
strinfo=('Apple','Xiaomi','HuaWei')
self['info']=strinfo
self.close()